<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>pyzy: PyZy::InputContext Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">pyzy
   &#160;<span id="projectnumber">0.0.8</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespacePyZy.html">PyZy</a>      </li>
      <li class="navelem"><a class="el" href="classPyZy_1_1InputContext.html">InputContext</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">PyZy::InputContext Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="PyZy::InputContext" -->
<p>Pinyin / Bopomofo conversion class.  
 <a href="classPyZy_1_1InputContext.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="InputContext_8h_source.html">InputContext.h</a>&gt;</code></p>

<p><a href="classPyZy_1_1InputContext-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext_1_1Observer.html">Observer</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classPyZy_1_1InputContext_1_1Observer.html" title="Observer class of the InputContext.">Observer</a> class of the <a class="el" href="classPyZy_1_1InputContext.html" title="Pinyin / Bopomofo conversion class.">InputContext</a>.  <a href="classPyZy_1_1InputContext_1_1Observer.html#details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#aa34679a81ae706ccf452c6d6800b0391">InputType</a> { <a class="el" href="classPyZy_1_1InputContext.html#aa34679a81ae706ccf452c6d6800b0391a02c67803c5a4c70704cd2be4bbdf9d62">FULL_PINYIN</a>, 
<a class="el" href="classPyZy_1_1InputContext.html#aa34679a81ae706ccf452c6d6800b0391aa63e8ac07674065793a2540fb6f5c1ed">DOUBLE_PINYIN</a>, 
<a class="el" href="classPyZy_1_1InputContext.html#aa34679a81ae706ccf452c6d6800b0391a088cf337cef705488d837015545e8d63">BOPOMOFO</a>
 }</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Input text type.  <a href="classPyZy_1_1InputContext.html#aa34679a81ae706ccf452c6d6800b0391">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#afe8f3dd629c2b63fddc35bd7a856d8fd">CommitType</a> { <a class="el" href="classPyZy_1_1InputContext.html#afe8f3dd629c2b63fddc35bd7a856d8fdabd4482061fff6951987d4df1b8343a0f">TYPE_RAW</a>, 
<a class="el" href="classPyZy_1_1InputContext.html#afe8f3dd629c2b63fddc35bd7a856d8fdad340eeeb0354a4b9a13ac5124a1123bd">TYPE_PHONETIC</a>, 
<a class="el" href="classPyZy_1_1InputContext.html#afe8f3dd629c2b63fddc35bd7a856d8fda045eea76f069cf5fbf0a7798ad7d42e2">TYPE_CONVERTED</a>
 }</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Commit type.  <a href="classPyZy_1_1InputContext.html#afe8f3dd629c2b63fddc35bd7a856d8fd">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#ad3f63e1ce4c49fe4e2fc11254bd4caac">PropertyName</a> { <br/>
&#160;&#160;<a class="el" href="classPyZy_1_1InputContext.html#ad3f63e1ce4c49fe4e2fc11254bd4caaca42b7ebe31732339c5dd116906b3fcf93">PROPERTY_CONVERSION_OPTION</a>, 
<a class="el" href="classPyZy_1_1InputContext.html#ad3f63e1ce4c49fe4e2fc11254bd4caaca9d6dc59beb9c59372939cb3e938b9671">PROPERTY_DOUBLE_PINYIN_SCHEMA</a>, 
<a class="el" href="classPyZy_1_1InputContext.html#ad3f63e1ce4c49fe4e2fc11254bd4caaca451317deb22e42e423044dbcad757bbc">PROPERTY_BOPOMOFO_SCHEMA</a>, 
<a class="el" href="classPyZy_1_1InputContext.html#ad3f63e1ce4c49fe4e2fc11254bd4caacacccb5d34e3e731a01480a7e68abeb14d">PROPERTY_SPECIAL_PHRASE</a>, 
<br/>
&#160;&#160;<a class="el" href="classPyZy_1_1InputContext.html#ad3f63e1ce4c49fe4e2fc11254bd4caaca12c8263f704b97e925bdd195be86ede7">PROPERTY_MODE_SIMP</a>
<br/>
 }</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">PropertyName.  <a href="classPyZy_1_1InputContext.html#ad3f63e1ce4c49fe4e2fc11254bd4caac">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2990105772e54835248fabdd3ea40e44"></a><!-- doxytag: member="PyZy::InputContext::~InputContext" ref="a2990105772e54835248fabdd3ea40e44" args="(void)" -->
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#a2990105772e54835248fabdd3ea40e44">~InputContext</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Virtual destructor. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#a0e1372a05cda00e57bb1ef49917ee025">insert</a> (char ch)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Appends a new character on cursor position.  <a href="#a0e1372a05cda00e57bb1ef49917ee025"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#a93416c6aae249128df880905ff494b89">commit</a> (<a class="el" href="classPyZy_1_1InputContext.html#afe8f3dd629c2b63fddc35bd7a856d8fd">CommitType</a> type=<a class="el" href="classPyZy_1_1InputContext.html#afe8f3dd629c2b63fddc35bd7a856d8fda045eea76f069cf5fbf0a7798ad7d42e2">TYPE_CONVERTED</a>)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Fixes the conversion result.  <a href="#a93416c6aae249128df880905ff494b89"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a022b802582b852dbe7e8cdb78ce8b88d"></a><!-- doxytag: member="PyZy::InputContext::reset" ref="a022b802582b852dbe7e8cdb78ce8b88d" args="(void)=0" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#a022b802582b852dbe7e8cdb78ce8b88d">reset</a> (void)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Resets the context. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#ab54c155a3882c06d43e8b5af9c3ba621">moveCursorRight</a> (void)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Moves a cursor to right input character.  <a href="#ab54c155a3882c06d43e8b5af9c3ba621"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#acc0870f955681b62643c5230ea858f30">moveCursorLeft</a> (void)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Moves a cursor to left input character.  <a href="#acc0870f955681b62643c5230ea858f30"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#a2ddda01e66b285003a32a8e23ad67fab">moveCursorRightByWord</a> (void)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Moves a cursor to left chinese character.  <a href="#a2ddda01e66b285003a32a8e23ad67fab"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#a5247e3372f032111b74dc019d2104633">moveCursorLeftByWord</a> (void)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Moves a cursor to right chinese character.  <a href="#a5247e3372f032111b74dc019d2104633"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#afcee93c2a849c34bc952d415bd6f3331">moveCursorToBegin</a> (void)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Moves a cursor to the beginning of the the input text.  <a href="#afcee93c2a849c34bc952d415bd6f3331"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#a6c24051ecdc57b70041aa03874ba2743">removeCharBefore</a> (void)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes a input character before a cursor.  <a href="#a6c24051ecdc57b70041aa03874ba2743"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#ad529e511ce07cbeddf965024c6674abc">removeCharAfter</a> (void)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes a input character after a cursor.  <a href="#ad529e511ce07cbeddf965024c6674abc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#ab7068d4370683edceb0c66d1798d3031">removeWordBefore</a> (void)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes a chinese character before a cursor.  <a href="#ab7068d4370683edceb0c66d1798d3031"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#acb2e53866d7efa7647b6079fcd5c8173">removeWordAfter</a> (void)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes a chinese character after a cursor.  <a href="#acb2e53866d7efa7647b6079fcd5c8173"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#a1b494f084949ab2e0a9432e9f6f8c4c3">moveCursorToEnd</a> (void)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Moves a cursor to the end of the the input text.  <a href="#a1b494f084949ab2e0a9432e9f6f8c4c3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#a2a75b69c18b058a55827112f487e63ff">selectCandidate</a> (size_t index)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Selects a candidate and converts a rest text.  <a href="#a2a75b69c18b058a55827112f487e63ff"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#a4da12a2b558648c7d2d432409ee4d87d">focusCandidate</a> (size_t index)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Focuses a candidate.  <a href="#a4da12a2b558648c7d2d432409ee4d87d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#a0e18ae9a2555d5291bdd26e99c273542">focusCandidatePrevious</a> (void)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Focuses a previous candidate.  <a href="#a0e18ae9a2555d5291bdd26e99c273542"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#a4da32a86ce6211d1652df9399ab33cc0">focusCandidateNext</a> (void)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Focuses a next candidate.  <a href="#a4da32a86ce6211d1652df9399ab33cc0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#a34ea0475b62ab1e842e439438e80f9d6">resetCandidate</a> (size_t index)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Resets a user input history of the candidate.  <a href="#a34ea0475b62ab1e842e439438e80f9d6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#abd377f4842161af3c6609e3190ad18cd">unselectCandidates</a> ()=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Unselects a selected text.  <a href="#abd377f4842161af3c6609e3190ad18cd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#a25a0c9ac7175ee2a713e990312e7f43b">hasCandidate</a> (size_t index)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks the candidate is exist or not.  <a href="#a25a0c9ac7175ee2a713e990312e7f43b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#abd7aa51d9cea243fe8c9a38daf4b1437">getCandidate</a> (size_t index, <a class="el" href="structPyZy_1_1Candidate.html">Candidate</a> &amp;output)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the candidate if exists.  <a href="#abd7aa51d9cea243fe8c9a38daf4b1437"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#a87ee52e0b1562993c2aeee8bca6c2cb2">getPreparedCandidatesSize</a> () const =0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets a already prepared candidates size.  <a href="#a87ee52e0b1562993c2aeee8bca6c2cb2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#a53f0ab06a72d8cd20d3d569b68b245b1">inputText</a> () const =0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a input text.  <a href="#a53f0ab06a72d8cd20d3d569b68b245b1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#a0dfbb78246279dda7eb7daee352c8f02">selectedText</a> (void) const =0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a selected text.  <a href="#a0dfbb78246279dda7eb7daee352c8f02"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#ac61f0c1076dc3b2a1202289ff0befba2">conversionText</a> (void) const =0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a conversion text.  <a href="#ac61f0c1076dc3b2a1202289ff0befba2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#a49c8f23fece3e917c269649709d6d0f4">restText</a> (void) const =0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a rest text.  <a href="#a49c8f23fece3e917c269649709d6d0f4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual const std::string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#a9d9f0504cd1c7daa3fb6d43512a8c20e">auxiliaryText</a> (void) const =0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a auxiliary text.  <a href="#a9d9f0504cd1c7daa3fb6d43512a8c20e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#af44fc8c5c4a2102c9a19ba9dd3df753b">cursor</a> () const =0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a cursor position from the beginning of the input text.  <a href="#af44fc8c5c4a2102c9a19ba9dd3df753b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#ae44fe2833bf415db4d1a74e0269e1ee4">focusedCandidate</a> () const =0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a index of the focused candidate.  <a href="#ae44fe2833bf415db4d1a74e0269e1ee4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classPyZy_1_1Variant.html">Variant</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#a83fb1e45f11d6dcc1823d9fe36918770">getProperty</a> (<a class="el" href="classPyZy_1_1InputContext.html#ad3f63e1ce4c49fe4e2fc11254bd4caac">PropertyName</a> name) const =0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets property of the context.  <a href="#a83fb1e45f11d6dcc1823d9fe36918770"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#a44e51396b86c6f266ee328b893146f51">setProperty</a> (<a class="el" href="classPyZy_1_1InputContext.html#ad3f63e1ce4c49fe4e2fc11254bd4caac">PropertyName</a> name, const <a class="el" href="classPyZy_1_1Variant.html">Variant</a> &amp;variant)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets property of the context.  <a href="#a44e51396b86c6f266ee328b893146f51"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#a78cce1032342f094be615ec0dd3851cf">init</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes a <a class="el" href="classPyZy_1_1InputContext.html" title="Pinyin / Bopomofo conversion class.">InputContext</a> class.  <a href="#a78cce1032342f094be615ec0dd3851cf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#acbc3135be3a6256f513354e8abb55596">init</a> (const std::string &amp;user_cache_dir, const std::string &amp;user_config_dir)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes a <a class="el" href="classPyZy_1_1InputContext.html" title="Pinyin / Bopomofo conversion class.">InputContext</a> class.  <a href="#acbc3135be3a6256f513354e8abb55596"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#ac197a8cd66bc0b85dd42339f5b283e08">finalize</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Finalizes a <a class="el" href="classPyZy_1_1InputContext.html" title="Pinyin / Bopomofo conversion class.">InputContext</a> class.  <a href="#ac197a8cd66bc0b85dd42339f5b283e08"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classPyZy_1_1InputContext.html">InputContext</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext.html#adf0f3aea2c16b5cf5838edec46444e27">create</a> (<a class="el" href="classPyZy_1_1InputContext.html#aa34679a81ae706ccf452c6d6800b0391">InputContext::InputType</a> type, <a class="el" href="classPyZy_1_1InputContext_1_1Observer.html">InputContext::Observer</a> *observer)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new <a class="el" href="classPyZy_1_1InputContext.html" title="Pinyin / Bopomofo conversion class.">InputContext</a> instance.  <a href="#adf0f3aea2c16b5cf5838edec46444e27"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Pinyin / Bopomofo conversion class. </p>
<p>This class is a factory class. You call a <a class="el" href="classPyZy_1_1InputContext.html#adf0f3aea2c16b5cf5838edec46444e27" title="Creates a new InputContext instance.">create()</a> method and you get a pointer of the instance. You should delete it yourself. If some context are modified, you can get a nortification through <a class="el" href="classPyZy_1_1InputContext_1_1Observer.html" title="Observer class of the InputContext.">Observer</a> instance. </p>
</div><hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="afe8f3dd629c2b63fddc35bd7a856d8fd"></a><!-- doxytag: member="PyZy::InputContext::CommitType" ref="afe8f3dd629c2b63fddc35bd7a856d8fd" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classPyZy_1_1InputContext.html#afe8f3dd629c2b63fddc35bd7a856d8fd">PyZy::InputContext::CommitType</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Commit type. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="afe8f3dd629c2b63fddc35bd7a856d8fdabd4482061fff6951987d4df1b8343a0f"></a><!-- doxytag: member="TYPE_RAW" ref="afe8f3dd629c2b63fddc35bd7a856d8fdabd4482061fff6951987d4df1b8343a0f" args="" -->TYPE_RAW</em>&nbsp;</td><td>
<p>Commits a input text directly. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="afe8f3dd629c2b63fddc35bd7a856d8fdad340eeeb0354a4b9a13ac5124a1123bd"></a><!-- doxytag: member="TYPE_PHONETIC" ref="afe8f3dd629c2b63fddc35bd7a856d8fdad340eeeb0354a4b9a13ac5124a1123bd" args="" -->TYPE_PHONETIC</em>&nbsp;</td><td>
<p>Commits a phonetic symbols, mainly used for Bopomofo. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="afe8f3dd629c2b63fddc35bd7a856d8fda045eea76f069cf5fbf0a7798ad7d42e2"></a><!-- doxytag: member="TYPE_CONVERTED" ref="afe8f3dd629c2b63fddc35bd7a856d8fda045eea76f069cf5fbf0a7798ad7d42e2" args="" -->TYPE_CONVERTED</em>&nbsp;</td><td>
<p>Commits a selected text, focused conversion text and rest text. </p>
</td></tr>
</table>
</dd>
</dl>

</div>
</div>
<a class="anchor" id="aa34679a81ae706ccf452c6d6800b0391"></a><!-- doxytag: member="PyZy::InputContext::InputType" ref="aa34679a81ae706ccf452c6d6800b0391" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classPyZy_1_1InputContext.html#aa34679a81ae706ccf452c6d6800b0391">PyZy::InputContext::InputType</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Input text type. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="aa34679a81ae706ccf452c6d6800b0391a02c67803c5a4c70704cd2be4bbdf9d62"></a><!-- doxytag: member="FULL_PINYIN" ref="aa34679a81ae706ccf452c6d6800b0391a02c67803c5a4c70704cd2be4bbdf9d62" args="" -->FULL_PINYIN</em>&nbsp;</td><td>
<p>Input text is full pinyin. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="aa34679a81ae706ccf452c6d6800b0391aa63e8ac07674065793a2540fb6f5c1ed"></a><!-- doxytag: member="DOUBLE_PINYIN" ref="aa34679a81ae706ccf452c6d6800b0391aa63e8ac07674065793a2540fb6f5c1ed" args="" -->DOUBLE_PINYIN</em>&nbsp;</td><td>
<p>Input text is double pinyin. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="aa34679a81ae706ccf452c6d6800b0391a088cf337cef705488d837015545e8d63"></a><!-- doxytag: member="BOPOMOFO" ref="aa34679a81ae706ccf452c6d6800b0391a088cf337cef705488d837015545e8d63" args="" -->BOPOMOFO</em>&nbsp;</td><td>
<p>Input text is bopomofo. </p>
</td></tr>
</table>
</dd>
</dl>

</div>
</div>
<a class="anchor" id="ad3f63e1ce4c49fe4e2fc11254bd4caac"></a><!-- doxytag: member="PyZy::InputContext::PropertyName" ref="ad3f63e1ce4c49fe4e2fc11254bd4caac" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classPyZy_1_1InputContext.html#ad3f63e1ce4c49fe4e2fc11254bd4caac">PyZy::InputContext::PropertyName</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>PropertyName. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="ad3f63e1ce4c49fe4e2fc11254bd4caaca42b7ebe31732339c5dd116906b3fcf93"></a><!-- doxytag: member="PROPERTY_CONVERSION_OPTION" ref="ad3f63e1ce4c49fe4e2fc11254bd4caaca42b7ebe31732339c5dd116906b3fcf93" args="" -->PROPERTY_CONVERSION_OPTION</em>&nbsp;</td><td>
<p>Conversion option </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="Const_8h_source.html">Const.h</a></dd></dl>
<p>Default value is PINYIN_INCORRECT_PINYIN | PINYIN_CORRECT_ALL | PYZY_FUZZY_ALL </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ad3f63e1ce4c49fe4e2fc11254bd4caaca9d6dc59beb9c59372939cb3e938b9671"></a><!-- doxytag: member="PROPERTY_DOUBLE_PINYIN_SCHEMA" ref="ad3f63e1ce4c49fe4e2fc11254bd4caaca9d6dc59beb9c59372939cb3e938b9671" args="" -->PROPERTY_DOUBLE_PINYIN_SCHEMA</em>&nbsp;</td><td>
<p>Double pinyin schema. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="Const_8h_source.html">Const.h</a></dd></dl>
<p>Default value is DOUBLE_PINYIN_KEYBOARD_MSPY. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ad3f63e1ce4c49fe4e2fc11254bd4caaca451317deb22e42e423044dbcad757bbc"></a><!-- doxytag: member="PROPERTY_BOPOMOFO_SCHEMA" ref="ad3f63e1ce4c49fe4e2fc11254bd4caaca451317deb22e42e423044dbcad757bbc" args="" -->PROPERTY_BOPOMOFO_SCHEMA</em>&nbsp;</td><td>
<p>Bopomofo schema. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="Const_8h_source.html">Const.h</a></dd></dl>
<p>Default value is BOPOMOFO_KEYBOARD_STANDARD. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ad3f63e1ce4c49fe4e2fc11254bd4caacacccb5d34e3e731a01480a7e68abeb14d"></a><!-- doxytag: member="PROPERTY_SPECIAL_PHRASE" ref="ad3f63e1ce4c49fe4e2fc11254bd4caacacccb5d34e3e731a01480a7e68abeb14d" args="" -->PROPERTY_SPECIAL_PHRASE</em>&nbsp;</td><td>
<p>Uses special phrase. Default value is true. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ad3f63e1ce4c49fe4e2fc11254bd4caaca12c8263f704b97e925bdd195be86ede7"></a><!-- doxytag: member="PROPERTY_MODE_SIMP" ref="ad3f63e1ce4c49fe4e2fc11254bd4caaca12c8263f704b97e925bdd195be86ede7" args="" -->PROPERTY_MODE_SIMP</em>&nbsp;</td><td>
<p>Uses simplified chinese character. Default value is true. </p>
</td></tr>
</table>
</dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a9d9f0504cd1c7daa3fb6d43512a8c20e"></a><!-- doxytag: member="PyZy::InputContext::auxiliaryText" ref="a9d9f0504cd1c7daa3fb6d43512a8c20e" args="(void) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const std::string&amp; <a class="el" href="classPyZy_1_1InputContext.html#a9d9f0504cd1c7daa3fb6d43512a8c20e">PyZy::InputContext::auxiliaryText</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a auxiliary text. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>auxiliary text. </dd></dl>

</div>
</div>
<a class="anchor" id="a93416c6aae249128df880905ff494b89"></a><!-- doxytag: member="PyZy::InputContext::commit" ref="a93416c6aae249128df880905ff494b89" args="(CommitType type=TYPE_CONVERTED)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classPyZy_1_1InputContext.html#a93416c6aae249128df880905ff494b89">PyZy::InputContext::commit</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPyZy_1_1InputContext.html#afe8f3dd629c2b63fddc35bd7a856d8fd">CommitType</a>&#160;</td>
          <td class="paramname"><em>type</em> = <code><a class="el" href="classPyZy_1_1InputContext.html#afe8f3dd629c2b63fddc35bd7a856d8fda045eea76f069cf5fbf0a7798ad7d42e2">TYPE_CONVERTED</a></code></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Fixes the conversion result. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>Commit type. </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classPyZy_1_1InputContext.html#afe8f3dd629c2b63fddc35bd7a856d8fd" title="Commit type.">CommitType</a></dd></dl>
<p>Fixes the conversion result according to CommitType and resets the context. </p>

</div>
</div>
<a class="anchor" id="ac61f0c1076dc3b2a1202289ff0befba2"></a><!-- doxytag: member="PyZy::InputContext::conversionText" ref="ac61f0c1076dc3b2a1202289ff0befba2" args="(void) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const std::string&amp; <a class="el" href="classPyZy_1_1InputContext.html#ac61f0c1076dc3b2a1202289ff0befba2">PyZy::InputContext::conversionText</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a conversion text. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>conversion text. </dd></dl>

</div>
</div>
<a class="anchor" id="adf0f3aea2c16b5cf5838edec46444e27"></a><!-- doxytag: member="PyZy::InputContext::create" ref="adf0f3aea2c16b5cf5838edec46444e27" args="(InputContext::InputType type, InputContext::Observer *observer)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classPyZy_1_1InputContext.html">InputContext</a>* <a class="el" href="classPyZy_1_1InputContext.html#adf0f3aea2c16b5cf5838edec46444e27">PyZy::InputContext::create</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPyZy_1_1InputContext.html#aa34679a81ae706ccf452c6d6800b0391">InputContext::InputType</a>&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classPyZy_1_1InputContext_1_1Observer.html">InputContext::Observer</a> *&#160;</td>
          <td class="paramname"><em>observer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a new <a class="el" href="classPyZy_1_1InputContext.html" title="Pinyin / Bopomofo conversion class.">InputContext</a> instance. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>The type of the input. </td></tr>
    <tr><td class="paramname">observer</td><td><a class="el" href="classPyZy_1_1InputContext_1_1Observer.html" title="Observer class of the InputContext.">Observer</a> to get a notification from the <a class="el" href="classPyZy_1_1InputContext.html" title="Pinyin / Bopomofo conversion class.">InputContext</a> instance. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>instance of the <a class="el" href="classPyZy_1_1InputContext.html" title="Pinyin / Bopomofo conversion class.">InputContext</a>.</dd></dl>
<p>You should take responsibility for deleting the instance. </p>

</div>
</div>
<a class="anchor" id="af44fc8c5c4a2102c9a19ba9dd3df753b"></a><!-- doxytag: member="PyZy::InputContext::cursor" ref="af44fc8c5c4a2102c9a19ba9dd3df753b" args="() const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual unsigned int <a class="el" href="classPyZy_1_1InputContext.html#af44fc8c5c4a2102c9a19ba9dd3df753b">PyZy::InputContext::cursor</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a cursor position from the beginning of the input text. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>cursor position. </dd></dl>

</div>
</div>
<a class="anchor" id="ac197a8cd66bc0b85dd42339f5b283e08"></a><!-- doxytag: member="PyZy::InputContext::finalize" ref="ac197a8cd66bc0b85dd42339f5b283e08" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void <a class="el" href="classPyZy_1_1InputContext.html#ac197a8cd66bc0b85dd42339f5b283e08">PyZy::InputContext::finalize</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Finalizes a <a class="el" href="classPyZy_1_1InputContext.html" title="Pinyin / Bopomofo conversion class.">InputContext</a> class. </p>
<p>You should call it at last. </p>

</div>
</div>
<a class="anchor" id="a4da12a2b558648c7d2d432409ee4d87d"></a><!-- doxytag: member="PyZy::InputContext::focusCandidate" ref="a4da12a2b558648c7d2d432409ee4d87d" args="(size_t index)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool <a class="el" href="classPyZy_1_1InputContext.html#a4da12a2b558648c7d2d432409ee4d87d">PyZy::InputContext::focusCandidate</a> </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Focuses a candidate. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>Index of the candidate. (0-origin) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if it takes valid index. </dd></dl>

</div>
</div>
<a class="anchor" id="a4da32a86ce6211d1652df9399ab33cc0"></a><!-- doxytag: member="PyZy::InputContext::focusCandidateNext" ref="a4da32a86ce6211d1652df9399ab33cc0" args="(void)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool <a class="el" href="classPyZy_1_1InputContext.html#a4da32a86ce6211d1652df9399ab33cc0">PyZy::InputContext::focusCandidateNext</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Focuses a next candidate. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if there are some candidates after the focused candidate; false otherwise. </dd></dl>

</div>
</div>
<a class="anchor" id="a0e18ae9a2555d5291bdd26e99c273542"></a><!-- doxytag: member="PyZy::InputContext::focusCandidatePrevious" ref="a0e18ae9a2555d5291bdd26e99c273542" args="(void)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool <a class="el" href="classPyZy_1_1InputContext.html#a0e18ae9a2555d5291bdd26e99c273542">PyZy::InputContext::focusCandidatePrevious</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Focuses a previous candidate. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if focused index is changed. </dd></dl>

</div>
</div>
<a class="anchor" id="ae44fe2833bf415db4d1a74e0269e1ee4"></a><!-- doxytag: member="PyZy::InputContext::focusedCandidate" ref="ae44fe2833bf415db4d1a74e0269e1ee4" args="() const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual unsigned int <a class="el" href="classPyZy_1_1InputContext.html#ae44fe2833bf415db4d1a74e0269e1ee4">PyZy::InputContext::focusedCandidate</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a index of the focused candidate. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>index of the focused candidate. (0-origin) </dd></dl>

</div>
</div>
<a class="anchor" id="abd7aa51d9cea243fe8c9a38daf4b1437"></a><!-- doxytag: member="PyZy::InputContext::getCandidate" ref="abd7aa51d9cea243fe8c9a38daf4b1437" args="(size_t index, Candidate &amp;output)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool <a class="el" href="classPyZy_1_1InputContext.html#abd7aa51d9cea243fe8c9a38daf4b1437">PyZy::InputContext::getCandidate</a> </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structPyZy_1_1Candidate.html">Candidate</a> &amp;&#160;</td>
          <td class="paramname"><em>output</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the candidate if exists. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>Index of the candidate. (0-origin) </td></tr>
    <tr><td class="paramname">output</td><td>A candidate which is got. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the candidate is exist. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classPyZy_1_1InputContext.html#a87ee52e0b1562993c2aeee8bca6c2cb2" title="Gets a already prepared candidates size.">getPreparedCandidatesSize</a></dd></dl>
<p>This method may update prepared candidates size. </p>

</div>
</div>
<a class="anchor" id="a87ee52e0b1562993c2aeee8bca6c2cb2"></a><!-- doxytag: member="PyZy::InputContext::getPreparedCandidatesSize" ref="a87ee52e0b1562993c2aeee8bca6c2cb2" args="() const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual size_t <a class="el" href="classPyZy_1_1InputContext.html#a87ee52e0b1562993c2aeee8bca6c2cb2">PyZy::InputContext::getPreparedCandidatesSize</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets a already prepared candidates size. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Prepared candidates size.</dd></dl>
<p>To avoid a performance issue, this library prepares candidates on demand. This method returns a size of candidates which are already prepared. </p>

</div>
</div>
<a class="anchor" id="a83fb1e45f11d6dcc1823d9fe36918770"></a><!-- doxytag: member="PyZy::InputContext::getProperty" ref="a83fb1e45f11d6dcc1823d9fe36918770" args="(PropertyName name) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classPyZy_1_1Variant.html">Variant</a> <a class="el" href="classPyZy_1_1InputContext.html#a83fb1e45f11d6dcc1823d9fe36918770">PyZy::InputContext::getProperty</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPyZy_1_1InputContext.html#ad3f63e1ce4c49fe4e2fc11254bd4caac">PropertyName</a>&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets property of the context. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>you want to get. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>value of the property. </dd></dl>

</div>
</div>
<a class="anchor" id="a25a0c9ac7175ee2a713e990312e7f43b"></a><!-- doxytag: member="PyZy::InputContext::hasCandidate" ref="a25a0c9ac7175ee2a713e990312e7f43b" args="(size_t index)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool <a class="el" href="classPyZy_1_1InputContext.html#a25a0c9ac7175ee2a713e990312e7f43b">PyZy::InputContext::hasCandidate</a> </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Checks the candidate is exist or not. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>Index of the candidate. (0-origin) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the candidate is exist. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classPyZy_1_1InputContext.html#a87ee52e0b1562993c2aeee8bca6c2cb2" title="Gets a already prepared candidates size.">getPreparedCandidatesSize</a></dd></dl>
<p>This method may update prepared candidates size. </p>

</div>
</div>
<a class="anchor" id="a78cce1032342f094be615ec0dd3851cf"></a><!-- doxytag: member="PyZy::InputContext::init" ref="a78cce1032342f094be615ec0dd3851cf" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void <a class="el" href="classPyZy_1_1InputContext.html#a78cce1032342f094be615ec0dd3851cf">PyZy::InputContext::init</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initializes a <a class="el" href="classPyZy_1_1InputContext.html" title="Pinyin / Bopomofo conversion class.">InputContext</a> class. </p>
<p>This is a wrapper function of input (user_cache_dir, user_config_dir). Default values are set to user_cache_dir and user_config_dir. You should call this function at first. </p>

</div>
</div>
<a class="anchor" id="acbc3135be3a6256f513354e8abb55596"></a><!-- doxytag: member="PyZy::InputContext::init" ref="acbc3135be3a6256f513354e8abb55596" args="(const std::string &amp;user_cache_dir, const std::string &amp;user_config_dir)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void <a class="el" href="classPyZy_1_1InputContext.html#a78cce1032342f094be615ec0dd3851cf">PyZy::InputContext::init</a> </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>user_cache_dir</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>user_config_dir</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initializes a <a class="el" href="classPyZy_1_1InputContext.html" title="Pinyin / Bopomofo conversion class.">InputContext</a> class. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">user_cache_dir</td><td>Directory which stores a user cache data. (input history, etc.) </td></tr>
    <tr><td class="paramname">user_config_dir</td><td>Directory which stores a user config data. If you want to use original special phrase table, please create "phrases.txt" under this directory.</td></tr>
  </table>
  </dd>
</dl>
<p>Specifies a directory to stores user data. You can set a same directory to user_cache_dir and user_config_dir. You should call this function at first. </p>

</div>
</div>
<a class="anchor" id="a53f0ab06a72d8cd20d3d569b68b245b1"></a><!-- doxytag: member="PyZy::InputContext::inputText" ref="a53f0ab06a72d8cd20d3d569b68b245b1" args="() const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const std::string&amp; <a class="el" href="classPyZy_1_1InputContext.html#a53f0ab06a72d8cd20d3d569b68b245b1">PyZy::InputContext::inputText</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a input text. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>input text. </dd></dl>

</div>
</div>
<a class="anchor" id="a0e1372a05cda00e57bb1ef49917ee025"></a><!-- doxytag: member="PyZy::InputContext::insert" ref="a0e1372a05cda00e57bb1ef49917ee025" args="(char ch)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool <a class="el" href="classPyZy_1_1InputContext.html#a0e1372a05cda00e57bb1ef49917ee025">PyZy::InputContext::insert</a> </td>
          <td>(</td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>ch</em></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Appends a new character on cursor position. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ch</td><td>Input character. It should be ASCII characters. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if succeed.</dd></dl>
<p>Appends a new character. This method fails if there are too many characters or invalid character is input. </p>

</div>
</div>
<a class="anchor" id="acc0870f955681b62643c5230ea858f30"></a><!-- doxytag: member="PyZy::InputContext::moveCursorLeft" ref="acc0870f955681b62643c5230ea858f30" args="(void)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool <a class="el" href="classPyZy_1_1InputContext.html#acc0870f955681b62643c5230ea858f30">PyZy::InputContext::moveCursorLeft</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Moves a cursor to left input character. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if cursor is moved. </dd></dl>

</div>
</div>
<a class="anchor" id="a5247e3372f032111b74dc019d2104633"></a><!-- doxytag: member="PyZy::InputContext::moveCursorLeftByWord" ref="a5247e3372f032111b74dc019d2104633" args="(void)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool <a class="el" href="classPyZy_1_1InputContext.html#a5247e3372f032111b74dc019d2104633">PyZy::InputContext::moveCursorLeftByWord</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Moves a cursor to right chinese character. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if cursor is moved. </dd></dl>

</div>
</div>
<a class="anchor" id="ab54c155a3882c06d43e8b5af9c3ba621"></a><!-- doxytag: member="PyZy::InputContext::moveCursorRight" ref="ab54c155a3882c06d43e8b5af9c3ba621" args="(void)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool <a class="el" href="classPyZy_1_1InputContext.html#ab54c155a3882c06d43e8b5af9c3ba621">PyZy::InputContext::moveCursorRight</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Moves a cursor to right input character. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if cursor is moved. </dd></dl>

</div>
</div>
<a class="anchor" id="a2ddda01e66b285003a32a8e23ad67fab"></a><!-- doxytag: member="PyZy::InputContext::moveCursorRightByWord" ref="a2ddda01e66b285003a32a8e23ad67fab" args="(void)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool <a class="el" href="classPyZy_1_1InputContext.html#a2ddda01e66b285003a32a8e23ad67fab">PyZy::InputContext::moveCursorRightByWord</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Moves a cursor to left chinese character. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if cursor is moved. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classPyZy_1_1InputContext.html#a1b494f084949ab2e0a9432e9f6f8c4c3" title="Moves a cursor to the end of the the input text.">moveCursorToEnd</a></dd></dl>
<p>Currently text after a cursor is not converted and it is assumed as one chinese character. So this method is same as moveCursorToEnd. </p>

</div>
</div>
<a class="anchor" id="afcee93c2a849c34bc952d415bd6f3331"></a><!-- doxytag: member="PyZy::InputContext::moveCursorToBegin" ref="afcee93c2a849c34bc952d415bd6f3331" args="(void)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool <a class="el" href="classPyZy_1_1InputContext.html#afcee93c2a849c34bc952d415bd6f3331">PyZy::InputContext::moveCursorToBegin</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Moves a cursor to the beginning of the the input text. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if cursor is moved. </dd></dl>

</div>
</div>
<a class="anchor" id="a1b494f084949ab2e0a9432e9f6f8c4c3"></a><!-- doxytag: member="PyZy::InputContext::moveCursorToEnd" ref="a1b494f084949ab2e0a9432e9f6f8c4c3" args="(void)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool <a class="el" href="classPyZy_1_1InputContext.html#a1b494f084949ab2e0a9432e9f6f8c4c3">PyZy::InputContext::moveCursorToEnd</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Moves a cursor to the end of the the input text. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if cursor is moved. </dd></dl>

</div>
</div>
<a class="anchor" id="ad529e511ce07cbeddf965024c6674abc"></a><!-- doxytag: member="PyZy::InputContext::removeCharAfter" ref="ad529e511ce07cbeddf965024c6674abc" args="(void)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool <a class="el" href="classPyZy_1_1InputContext.html#ad529e511ce07cbeddf965024c6674abc">PyZy::InputContext::removeCharAfter</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Removes a input character after a cursor. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if a character is removed. </dd></dl>

</div>
</div>
<a class="anchor" id="a6c24051ecdc57b70041aa03874ba2743"></a><!-- doxytag: member="PyZy::InputContext::removeCharBefore" ref="a6c24051ecdc57b70041aa03874ba2743" args="(void)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool <a class="el" href="classPyZy_1_1InputContext.html#a6c24051ecdc57b70041aa03874ba2743">PyZy::InputContext::removeCharBefore</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Removes a input character before a cursor. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if a character is removed. </dd></dl>

</div>
</div>
<a class="anchor" id="acb2e53866d7efa7647b6079fcd5c8173"></a><!-- doxytag: member="PyZy::InputContext::removeWordAfter" ref="acb2e53866d7efa7647b6079fcd5c8173" args="(void)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool <a class="el" href="classPyZy_1_1InputContext.html#acb2e53866d7efa7647b6079fcd5c8173">PyZy::InputContext::removeWordAfter</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Removes a chinese character after a cursor. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if a character is removed.</dd></dl>
<p>Currently text after a cursor is not converted and it is assumed as one chinese character. So this method removes all text after a cursor. </p>

</div>
</div>
<a class="anchor" id="ab7068d4370683edceb0c66d1798d3031"></a><!-- doxytag: member="PyZy::InputContext::removeWordBefore" ref="ab7068d4370683edceb0c66d1798d3031" args="(void)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool <a class="el" href="classPyZy_1_1InputContext.html#ab7068d4370683edceb0c66d1798d3031">PyZy::InputContext::removeWordBefore</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Removes a chinese character before a cursor. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if a character is removed. </dd></dl>

</div>
</div>
<a class="anchor" id="a34ea0475b62ab1e842e439438e80f9d6"></a><!-- doxytag: member="PyZy::InputContext::resetCandidate" ref="a34ea0475b62ab1e842e439438e80f9d6" args="(size_t index)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool <a class="el" href="classPyZy_1_1InputContext.html#a34ea0475b62ab1e842e439438e80f9d6">PyZy::InputContext::resetCandidate</a> </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Resets a user input history of the candidate. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>Index of the candidate. (0-origin) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if it takes valid index. </dd></dl>

</div>
</div>
<a class="anchor" id="a49c8f23fece3e917c269649709d6d0f4"></a><!-- doxytag: member="PyZy::InputContext::restText" ref="a49c8f23fece3e917c269649709d6d0f4" args="(void) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const std::string&amp; <a class="el" href="classPyZy_1_1InputContext.html#a49c8f23fece3e917c269649709d6d0f4">PyZy::InputContext::restText</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a rest text. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>rest text. </dd></dl>

</div>
</div>
<a class="anchor" id="a2a75b69c18b058a55827112f487e63ff"></a><!-- doxytag: member="PyZy::InputContext::selectCandidate" ref="a2a75b69c18b058a55827112f487e63ff" args="(size_t index)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool <a class="el" href="classPyZy_1_1InputContext.html#a2a75b69c18b058a55827112f487e63ff">PyZy::InputContext::selectCandidate</a> </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Selects a candidate and converts a rest text. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>Index of the candidate. (0-origin) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if it takes valid index. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classPyZy_1_1InputContext.html#a93416c6aae249128df880905ff494b89" title="Fixes the conversion result.">commit</a></dd></dl>
<p>If there are no rest text after select, this method triggeres commit. </p>

</div>
</div>
<a class="anchor" id="a0dfbb78246279dda7eb7daee352c8f02"></a><!-- doxytag: member="PyZy::InputContext::selectedText" ref="a0dfbb78246279dda7eb7daee352c8f02" args="(void) const =0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const std::string&amp; <a class="el" href="classPyZy_1_1InputContext.html#a0dfbb78246279dda7eb7daee352c8f02">PyZy::InputContext::selectedText</a> </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a selected text. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>selected text. </dd></dl>

</div>
</div>
<a class="anchor" id="a44e51396b86c6f266ee328b893146f51"></a><!-- doxytag: member="PyZy::InputContext::setProperty" ref="a44e51396b86c6f266ee328b893146f51" args="(PropertyName name, const Variant &amp;variant)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool <a class="el" href="classPyZy_1_1InputContext.html#a44e51396b86c6f266ee328b893146f51">PyZy::InputContext::setProperty</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPyZy_1_1InputContext.html#ad3f63e1ce4c49fe4e2fc11254bd4caac">PropertyName</a>&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPyZy_1_1Variant.html">Variant</a> &amp;&#160;</td>
          <td class="paramname"><em>variant</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets property of the context. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>you want to get. </td></tr>
    <tr><td class="paramname">variant</td><td>value of the property. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if the value is set successfully. </dd></dl>

</div>
</div>
<a class="anchor" id="abd377f4842161af3c6609e3190ad18cd"></a><!-- doxytag: member="PyZy::InputContext::unselectCandidates" ref="abd377f4842161af3c6609e3190ad18cd" args="()=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool <a class="el" href="classPyZy_1_1InputContext.html#abd377f4842161af3c6609e3190ad18cd">PyZy::InputContext::unselectCandidates</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Unselects a selected text. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if there are some selected text. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/home/hsumita/pyzy/src/<a class="el" href="InputContext_8h_source.html">InputContext.h</a></li>
</ul>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Aug 1 2012 16:45:23 for pyzy by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
